#ifndef SNAKE_H
#define SNAKE_H

#include "GameObject.h"
#include <vector>

class Snake : public GameObject {
private:
    std::vector<std::vector<int>> body;
    void drawUnitBlock(int body_x, int body_y, const char* pic);
    void eraseUnitBlock(int body_x, int body_y);
public:
    Snake();
    void draw() override;
    void move(char inPut);
    void autoMove();
    void removeTail();
    std::vector<int> getHead();
    std::vector<std::vector<int>> getBody();
};

#endif